package com.example.aspect.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jimao.zou
 * @date 9/28/2018 2:35 PM
 * @description: TODO
 */
@RestController
@RequestMapping("/log")
@Slf4j
public class LogController {
    @GetMapping("/hello")
    public String hello(
            @RequestParam("name") String name,@RequestParam("num")Integer  num ){
        return "hello in  logController";

    }

    @GetMapping("noarg")
    public String noArg(){
        return "no arg in logController";
    }
}
